package org.camunda.spin.groovy.json.tree

node = S(input, "application/json");
currencies = node.prop("orderDetails").prop("currencies");

oldSize = currencies.elements().size();

currencies.removeAt(-2);

newSize = currencies.elements().size();
value = currencies.elements().get(newSize - 1).stringValue();
